﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WanPiJie.Products
{
    [Serializable]
    public class Commodity
    {
        /// <summary>
        /// 单品Id（商品所属单品的Id）
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 卖家昵称
        /// </summary>
        public string SellerNick { get; set; }

        /// <summary>
        /// 店铺连接
        /// </summary>
        public string ShopUrl { get; set; }

        /// <summary>
        /// 商品所在地
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// 卖家信用等级
        /// </summary>
        public int SellerCreditScore { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        public long SerialNumber { get; set; }

        /// <summary>
        /// 商品标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 商品类目Id
        /// </summary>
        public long CatalogId { get; set; }

        /// <summary>
        /// 商品图片地址
        /// </summary>
        public String Picture { get; set; }

        /// <summary>
        /// 销售量
        /// </summary>
        public Int32 Volume { get; set; }

        /// <summary>
        /// 商品提供商
        /// </summary>
        public string Supplier { get; set; }

        /// <summary>
        /// 商品链接
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 商品添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 商品更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 适用最大年龄（以月份数为单位）
        /// </summary>
        public Int32 MaxAge { get; set; }

        /// <summary>
        /// 适用最小年龄（以月份数为单位）
        /// </summary>
        public Int32 MinAge { get; set; }

        /// <summary>
        /// 适用最小体重（以千克为单位）
        /// </summary>
        public Int32 MinWeight { get; set; }

        /// <summary>
        /// 适用最大体重（以千克为单位）
        /// </summary>
        public Int32 MaxWeight { get; set; }

        /// <summary>
        /// 当前商品的属性信息
        /// </summary>
        private IDictionary<Int64, String> attributes;

        /// <summary>
        /// 当前商品的属性信息
        /// </summary>
        public IDictionary<Int64, String> Attributes
        {
            get
            {
                return this.attributes;
            }
            set
            {
                this.attributes = value;
            }
        }
    }
}
